﻿namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbMonTotNghiep")]
    public partial class TbMonTotNghiep
    {
        public TbMonTotNghiep()
        {
            TbDiemTotNghieps = new HashSet<TbDiemTotNghiep>();
        }

        [Key]
        [Display(Name = "Mã Môn")]
        public int MaMon { get; set; }

        [Required(ErrorMessage = "Bạn chưa nhập Môn tốt nghiệp!")]
        [Display(Name = "Môn tốt nghiệp")]
        [StringLength(50)]
        public string TenMon { get; set; }

        public ICollection<TbDiemTotNghiep> TbDiemTotNghieps { get; set; }
    }
}
